﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;

namespace TestingSystem.TestingManager
{
    public class QuestionDisplay : INotifyPropertyChanged
    {
        private string _User_ID;
        private int _Question_ID;
        private string _Question_Type;
        private string _Question_Level;
        private string _Question_Desc;

        public event PropertyChangedEventHandler PropertyChanged;

        public string User_ID 
        {
            get { return _User_ID; }
            set
            {
                _User_ID = value;
                NotifyPropertyChanged("User_ID");
            }
        }

        public int Question_ID 
        {
            get { return _Question_ID; }
            set
            {
                _Question_ID = value;
                NotifyPropertyChanged("Question_ID");
            }
        }

        public string Question_Type 
        {
            get { return _Question_Type; }
            set
            {
                _Question_Type = value;
                NotifyPropertyChanged("Question_Type");
            }
        }

        public string Question_Level 
        {
            get { return _Question_Level; }
            set
            {
                _Question_Level = value;
                NotifyPropertyChanged("Question_Level");
            }
        }

        public string Question_Desc 
        {
            get { return _Question_Desc; }
            set
            {
                _Question_Desc = value;
                NotifyPropertyChanged("Question_Desc");
            }
        }
        
        private void NotifyPropertyChanged(string name)
        {
            if (PropertyChanged != null)
                PropertyChanged(this, new PropertyChangedEventArgs(name));
        }
    }
}
